package com.wenjie.utils;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public class RequestUtils {


    /**
     * @Description: TODO 将结果直接返回到前端
     * @Param:
     * @Return:
     * @Author: wenjie
     * @Date: 2023/2/27
     */
    public static void directSuccessReturn(HttpServletResponse response, String content) {
        try {
            response.setContentType("application/json");
            response.setCharacterEncoding("utf-8");
            response.getWriter().print(content);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
